var applePrice = 3;
var pearPrice = 2;
var peachPrice = 1;
for (var i = 0; i <= 100; i++){
  for (var j = 0; j <= 100; j++){
    for (var k = 0; k <=100; k++){
      if (applePrice * i + pearPrice * j + peachPrice * k == 200 && ((i + j + k) == 100))
          console.log("apple: "+ i +" pear: " + j + " peach: " + k);
    }
  }
}